package com.zx.oa.service.census;

import com.alibaba.fastjson.JSONArray;
import com.zx.oa.dao.census.CensusDao;
import com.zx.oa.dao.census.CensusDaolpml;
import com.zx.oa.entity.ClassInfo;
import com.zx.oa.entity.Major;
import com.zx.oa.entity.Student;

import java.util.List;

public class CensusServicelpml implements CensusService{
    CensusDao censusDao=new CensusDaolpml();

    @Override
    public List<Student> getStudentList(String major, String className,int currentPageNo,int pageSize,int censusMoringWeek) {
        return censusDao.getStudentList(major,className,currentPageNo,pageSize,censusMoringWeek);
    }

    @Override
    public List<Major> getMajorAll() {
        return censusDao.getMajorAll();
    }

    @Override
    public List<ClassInfo> getClassAll(String majorName) {
        return censusDao.getClassAll(majorName);
    }

    @Override
    public boolean delete(int id) {
        return censusDao.delete(id);
    }

    @Override
    public boolean setResult(String result, String[] nameIds, int census) {
        return censusDao.setResult(result,nameIds,census);
    }

}
